package com.tianya.common.action;
import javax.servlet.http.HttpSession;

import com.tianya.common.util.SessionConst;
import org.apache.struts2.ServletActionContext;

@SuppressWarnings("serial")
public class LogoutAction extends BaseAction {
	@Override
	public String actionExecute() throws Exception 
	{
		HttpSession session = ServletActionContext.getRequest().getSession();
		session.removeAttribute(SessionConst.User);
		session.invalidate();
		return SUCCESS;
	}
}
